package com.mico.example.springboot.jpa.service;

import com.mico.example.springboot.jpa.domain.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;


/**
 * Created by micocube
 * ProjectName: springboot-example
 * PackageName: com.mico.example.springboot.jpa.service
 * User: micocube
 * Email: ldscube@gmail.com
 * CreateTime: 2019/2/25下午1:49
 * ModifyTime: 2019/2/25下午1:49
 * Version: 0.1
 * Description:
 **/
public interface UserService {
    public Page<User> findByUsername(String name, Pageable pageable);

    public User findByUsername(String name);

    public Page<User> findAll(Pageable pageable);

}
